﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WillowTree
{
    public enum InputMode { Standard, Advanced };

    class GlobalSettings
    {
        public delegate void InputMethodChangedEventHandler(WillowTree.InputMode method, bool UseHexadecimal);
        static public event InputMethodChangedEventHandler InputMethodChanged;

        static private WillowTree.InputMode _InputMode = WillowTree.InputMode.Standard;
        static public WillowTree.InputMode InputMode
        {
            get { return _InputMode; }
            set
            {
                _InputMode = value;
                if (InputMethodChanged != null)
                    InputMethodChanged(InputMode, GlobalSettings.UseHexInAdvancedMode);
            }
        }

        static public bool UseHexInAdvancedMode = false;
    }
}
